package org.nanotek.web.spring.bean;

import java.util.List;

import org.nanotek.beans.ArtistCredit;
import org.nanotek.beans.ArtistName;
import org.nanotek.beans.Release;
import org.nanotek.beans.Track;
import org.nanotek.spring.service.ArtistSearchService;
import org.nanotek.web.WebBean;
import org.springframework.beans.factory.annotation.Autowired;

@SuppressWarnings("serial")
public class ArtistWebBean implements WebBean<ArtistName> {

	@Autowired
	private ArtistSearchService artistSearchService;
	
	public List<?> findArtistByName(String artistQuery) {
		return artistSearchService.findArtistByName(artistQuery);
	}

	public ArtistCredit findArtistCredit(Long artistCreditId) {
		return artistSearchService.findArtistCredit(artistCreditId);
	}

	public ArtistName findArtistNameById(String artistQuery) {
		return artistSearchService.findArtistNameById(artistQuery);
	}

	public List<?> findArtistCredit(ArtistName searchParameter) {
		return artistSearchService.findArtistCredit(searchParameter);
	}

	public List<Track> findTrackByArtistCredit(ArtistCredit artistCredit) {
		return artistSearchService.findTrackByArtistCredit(artistCredit);
	}

	public List<Release> findReleaseByArtistCredit(ArtistCredit artistCredit) {
		return artistSearchService.findReleaseByArtistCredit(artistCredit);
	}

	public ArtistSearchService getArtistSearchService() {
		return artistSearchService;
	}

	public void setArtistSearchService(ArtistSearchService artistSearchService) {
		this.artistSearchService = artistSearchService;
	}

}
